<script type="text/javascript" src="jsfile.js"></script>
<script type="text/javascript" >function setValue(str){document.getElementById("name").value=str;}</script>



<input style="width: 200px;" id="name" onKeyUp="getInfo(this.value)" type="text" />
<div id="autoSuggestionsList"></div>